<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- 行内样式 -->
    <input type="button" value="点我一下" onclick="alert('哈哈哈')">

    <!-- 内部样式 -->
    <script>
        alert("hello javascript!");
    </script>

    <!-- 外部样式 -->
    <script src="JS.js"></script>
</body>

</html>